import javax.sql.DataSource;

/**
 * @Question DBUtil
 * @Date 2022/12/3 19:45
 * @Solution
 */
public class DBUtil {
    private static volatile DataSource dataSource = null;
    public static DataSource getDataSource() {
        if(dataSource==null) {
            dataSource=new MysqlDataSourace();
        }
    }
}
